package com.wwl.deliveryappointmentbackend.service;

import com.wwl.deliveryappointmentbackend.mapper.UserMapper;
import com.wwl.deliveryappointmentbackend.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User findByUserName(String userName) {
        return userMapper.findByUserName(userName);
    }
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
